package com.zpb.portal.controller;

import com.zpb.framework.domain.ApiResult;
import com.zpb.framework.domain.entity.Category;
import com.zpb.framework.domain.vo.CategoryVo;
import com.zpb.framework.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/10
 */
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;
    @GetMapping("/getCategoryList")
    public ApiResult<List<CategoryVo>> getCategoryList() {
        return categoryService.getList();
    }
}
